// b.js
(async () => {
  const ora = (await import('ora')).default;
  
  const spinner = ora('Downloading...').start();
  
  try {
    // 你的耗时任务代码
    await new Promise(resolve => setTimeout(resolve, 3000));
    spinner.succeed('Task completed!');
  } catch (error) {
    spinner.fail('Task failed!');
  }
})();


